package com.mf.dao.authority.impl;

import com.mf.dao.framework.GenericDao;
import com.mf.dao.authority.ResourceInfoDao;
import com.mf.domain.authority.ResourceInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 资源信息Dao层实现类
 * User: zhaoming
 * DateTime: 2016-07-14
 * To change this template use File | Settings | File Templates.
 **/
@Repository
public class ResourceInfoDaoImpl extends GenericDao<ResourceInfo> implements ResourceInfoDao {

    Logger logger = LoggerFactory.getLogger(getClass());

    public static final String TREE_GRID_QUERY = "treeGirdQuery";   //查询资源信息列表

    /**
     * 查询资源信息列表(树形)
     * @param resourceInfo 资源信息Domain
     * @return 资源信息列表
     */
    public List<ResourceInfo> treeGirdQuery(ResourceInfo resourceInfo){
        return this.selectList(this.getStatement(TREE_GRID_QUERY), resourceInfo);
    }

}
